# Author:Haixin
# week07

# vowels.py

# vowels  = ['a','e','i','o','u']
# word = "Milliways"
# for letter in word:
#     print(letter)
#     if letter in vowels:
#         print(letter)       # 这个代码会显示 “word” 中找到的元音

# vowels2.py

# vowels  = ['a','e','i','o','u']
# word = "Milliways"
# found = []     # 空列表
# for letter in word:
#     if letter in vowels:
#         if letter not in found:
#             found.append(letter)    # 确定是否更新found元音列表
# for vowel in found:
#         print(vowel)    # 第一个“for”循环结束时，第二个循环开始运行，它会显示“word”中找到的元音

# vowels3.py

# vowels  = ['a','e','i','o','u']
# word = input("Provide a word to search for vowels: ")
# found = []
# for letter in word:
#     if letter in vowels:
#         if letter not in found:
#             found.append(letter)
# for vowel in found:
#         print(vowel)
